import request from '@/utils/request'

// 查询数据注册列表
export function listRegister(query) {
  return request({
    url: '/compre/register/list',
    method: 'get',
    params: query
  })
}

// 查询数据注册详细
export function getRegister(id) {
  return request({
    url: '/compre/register/' + id,
    method: 'get'
  })
}

// 新增数据注册
export function addRegister(data) {
  return request({
    url: '/compre/register',
    method: 'post',
    data: data
  })
}

// 修改数据注册
export function updateRegister(data) {
  return request({
    url: '/compre/register',
    method: 'put',
    data: data
  })
}

// 删除数据注册
export function delRegister(id) {
  return request({
    url: '/compre/register/' + id,
    method: 'delete'
  })
}


// 审核数据注册
export function examineRegister(data) {
  return request({
    url: '/compre/register/examine',
    method: 'post',
    data: data
  })
}

// 查询注册数据列表
export function getRegisterList(query = {}) {
  return request({
    url: '/compre/register/getAllList',
    method: 'get',
    params: query
  })
}

// 数据注册详情
export function getRegisterDetail(id) {
  return request({
    url: '/compre/register/' + id,
    method: 'get'
  })
}

//数据订阅
export function dataSubscribe(data) {
  return request({
    url: '/compre/subscribe',
    method: 'post',
    data: data
  })
}
